home *** CD-ROM | disk | FTP | other *** search
/ Champak 120 / Vol 120.iso / games / bounce_c.swf / scripts / DefineSprite_220 / frame_21 / DoAction.as
Text File  |  2010-11-09  |  1KB  |  42 lines

  1. if(_root.totalScore > _root.score_level1)
  2. {
  3.    crushRank.gotoAndStop("r_m");
  4.    crushRating.gotoAndStop("r_m");
  5. }
  6. else if(_root.totalScore > _root.score_level2)
  7. {
  8.    crushRank.gotoAndStop("r_a");
  9.    crushRating.gotoAndStop("r_a");
  10. }
  11. else if(_root.totalScore > _root.score_level3)
  12. {
  13.    crushRank.gotoAndStop("r_b");
  14.    crushRating.gotoAndStop("r_b");
  15. }
  16. else if(_root.totalScore > _root.score_level4)
  17. {
  18.    crushRank.gotoAndStop("r_c");
  19.    crushRating.gotoAndStop("r_c");
  20. }
  21. else if(_root.totalScore > _root.score_level5)
  22. {
  23.    crushRank.gotoAndStop("r_d");
  24.    crushRating.gotoAndStop("r_d");
  25. }
  26. else if(_root.totalScore > _root.score_level6)
  27. {
  28.    crushRank.gotoAndStop("r_e");
  29.    crushRating.gotoAndStop("r_e");
  30. }
  31. else
  32. {
  33.    crushRank.gotoAndStop("r_f");
  34.    crushRating.gotoAndStop("r_f");
  35. }
  36. if(_root.totalScore > _root["stage_score" + _root.currentLevel])
  37. {
  38.    _root["stage_score" + _root.currentLevel] = _root.totalScore;
  39. }
  40. _root.local_data.data["stage_score" + _root.currentLevel] = _root["stage_score" + _root.currentLevel];
  41. _root.local_data.flush();
  42.